home *** CD-ROM | disk | FTP | other *** search
-
- { This might be an alternative to not initalizing if x00extok = true
- Here the actual X00 extended functions are used in place of DDPlus
- fossil initialization call.
- This module is currently for reference only. It isn't needed at present.
- If problems develop when not initalizing the fossil replace comio with
- these routines.
- As BNU has not released their extended parameters it is better to use the
- XFossil option in DDPlus without change.
-
- S.R.L. }
-
- procedure AsyncSelectPort(n: byte);
- var
- b: boolean;
- begin;
- comport:=n;
- case AsyncIoType of
- Fossil: If x00extok then
- begin
- port_num:=n-1;
- initok:=true;
- async_reset_x00_ext;
- end
- else
- begin
- async_deinit_fossil;
- port_num:=n-1;
- initok:=async_init_fossil;
- end;
- Internal: begin;
- closeallcoms;
- initok:=opencom(n,InternalInSize,InternalOutSize);
- end;
- end;
- end;
-
- procedure AsyncCloseCom;
- begin;
- case AsyncIoType of
- fossil: if x00extok then async_reset_x00_ext
- else Async_deinit_fossil;
- internal: closecom(cp);
- end;
- end;
-
- procedure AsyncSetBaud(n: longint);
- begin;
- case asynciotype of
- fossil: If X00extok then async_set_x00_ext(n) else
- async_set_baud(n);
- internal: comparams(comport,n,8,'N',1);
- end;
- end;
-